package com.org.khtn.data;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.HashMap;
import java.util.Map;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class DataTable {
//	String name;
//	Map<String, Map<String,String>> data;
//	public DataTable(String Name)
//	{
//		data = new Map<String, Map<String,String>>();
//		
//		name = Name;
//	}
//	public static void main(String[] args) throws FileNotFoundException {
//		GsonBuilder gsonBuilder = new GsonBuilder();
//		gsonBuilder
//				.registerTypeAdapter(Object.class, new NaturalDeserializer());
//		Gson gson = gsonBuilder.create();
//		Reader isReader = new InputStreamReader(new FileInputStream(
//				("c:\\test.json")));
//		Map<String, Map<String, Map<String,String>>> temp = new HashMap<String, Map<String, Map<String,String>>>();
//		//
//		Object natural = gson.fromJson(isReader, Object.class);
//		temp.putAll( (Map<? extends String, ? extends Map<String, Map<String, String>>>) natural);
//		Gson gson1 = new Gson();
//		String json = gson1.toJson(temp);
//		System.out.println("json = " + json);
//
//		System.out.println(natural.toString());
//		DataTable a = new DataTable("c:\\test.json");
//		a.LoadData();
//	}


}
